<div class='yui-g'>
    <div class='yui-u first'>
        <h3>Page Details</h3>
        <?php echo form_tag('index',array('validation'=>true))?>
        <?php echo hidden_field_tag('action','edit_page')?>
        <?php include load_template('_form.php')?>
        <?php echo hidden_field('pages','id')?>
        <br/><?php echo submit_tag('Save Page')?>
        <?php echo end_form_tag()?>

        <?php if (has_access_to('Pages::Delete Pages')) {?>
            <hr/>
            <div class='div-delete'>
            <?php echo  form_tag('delete') ?>
            <?php echo  hidden_field_tag('id',$pages->get('id')) ?>
            <?php echo  hidden_field_tag('action','delete') ?>
            <span style='font-weight:bold'>Delete This Page?</span>
            <?php echo  submit_tag('Delete Page',array('confirm'=>'Are you sure you want to delete this page?','class'=>'submit_delete')) ?>
            <?php echo  end_form_tag() ?>
            </div>
        <?php } ?>
    </div>
    <div class='yui-u'>
        <h3>Meta Information</h3>
           <?php echo form_remote_tag(array('controller'=>'admin/pages' ,'action'=>'edit_meta'),
                    array(
                        'update'=>'success_messages',
                        'complete'=>"toggle_success();",
                        )
                        )
             ?>
            <?php echo  hidden_field('pages','id') ?>
            <?php echo  hidden_field_tag('action','edit_meta') ?>
            <label for='pages_keywords'>Page Title</label>
            <span class='hint_text'>Any value here can replace the main title of the page.</span><br />
            <?php echo  text_field('pages','meta_title',array('size'=>'40')) ?> 

            <label for='pages_keywords'>Meta Keywords</label>
            <?php echo  text_area('pages','meta_keywords',array('size'=>'40x5')) ?>

            <label for='pages_keywords'>Meta Description</label>
            <?php echo  text_area('pages','meta_description',array('size'=>'40x5')) ?>   

            <br><br><?php echo  submit_tag('Save Meta Content') ?>
            <?php echo  end_form_tag() ?>
    </div>
</div>